package com.lms.dao.weixin;

import com.lms.util.WeixinUtil.pojo.WeixinAccess_token;

import java.sql.Connection;
import java.sql.SQLException;

public interface WeixinDao {
    int bind(Connection connection,String userCode,String openID);
    WeixinAccess_token getAccess_token(Connection connection) throws SQLException;
    void setAccess_token(Connection connection,WeixinAccess_token access_token) throws SQLException;
    boolean searchOpenID(Connection connection,String userCode) throws SQLException;
    boolean bindOpenID(Connection connection,String userCode,String openID) throws SQLException;
    boolean unbindOpenID(Connection connection,String openID)throws SQLException;
}
